/**
 * 
 * @param array 
 * @param orderBy 
 * @returns 
 */
function sortData<T>(array: T[], orderBy: number) {
    if (orderBy == 1) {
        array.sort()
    } else {
        // array.sort((a, b) => {
        //     return b - a
        // })
    }
    return array
}
sortData<number>([1, 2, 3, 4, 5], 1)
sortData<string>(["a", "b", "d", "c"], 2)

function computed<T,K>(params:T,params2:K){

}
computed(1,2)
computed<string,number>("2",3)

export {}